package self.hoy.demo.grainmall.search.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 封装search.html中所有可能提交的参数
 * @author hyh
 * @date 2020/7/22
 */
@Data
public class SearchParam implements Serializable {
    private static final long serialVersionUID = -8966658224090778226L;

    /**
     * 三级分类id
     */
    private Long catalog3Id;

    /**
     * sku title
     */
    private String keyword;

    /**
     * 品牌id，可以多选
     */
    private List<Long> brandId;

    /**
     * 是否有货 1 0
     */
    private Integer hasStock;

    /**
     * 1_500 价格介于1到500
     * _500 价格在500以内
     * 500_ 价格在500以上
     */
    private String skuPrice;

    /**
     * sort=saleCount_asc
     * sort=saleCount_desc
     * sort=skuPrice_asc
     * sort=skuPrice_desc
     * sort=hotScore_asc
     * sort=hotScore_desc
     */
    private String sort;

    /**
     * attrs=1_其它:安卓 其中1是属性“系统”的id
     * attrs=2_5寸:6寸
     */
    private List<String> attrs;

    /**
     * 页码
     */
    private Integer pageNum = 1;
}
